<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% 

String division = (String)request.getAttribute("division");
String Mem_Nick = (String)request.getAttribute("id");
String[] you = null;
String title = null;
String massage = null;

if((String[])request.getAttribute("you") != null){
	you = (String[])request.getAttribute("you");
}

if(division.equals("error")){
	title = "お知らせ";
	massage = "中高年は「MyPage」を製作する事が出来ません。";
}else if(division.equals("no")){
	title = "お知らせ";
	massage = "委託申請をした方に提供される機能です。";
}else{
	title = "承認確認";
}

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="/KOMORIUTA/Mypage/Css/MpMain.css"> 

<script src="/KOMORIUTA/Mypage/Mp_Script.js" type="text/JavaScript"></script>
<script src="/KOMORIUTA/Mypage/jquery.js" type="text/JavaScript"></script>
</head>
<body>
<form id="definite" method="post">
<div class="join_form">
	<fieldset>
 		<legend ><%=title%></legend>
 			<% if(division.equals("error")){%>
 			<p>
 				<%=massage %>
 			</p>
 			<% }else if(division.equals("no")){ %>
 			<p>
 				<%=massage %>
 			</p>
 			<% }else{
 					for(int i=0;i<you.length;i++){ %>
 					<p style="font-size: 20px">
 						<%=you[i]%>様が「MyPage」の共有を申請しました。
 						<img style="cursor: pointer;" src="/KOMORIUTA/Mypage/image/refusal.png" width="60" height="30" onclick="refusal('<%=Mem_Nick%>','<%=you[i]%>');"/>
 						<img style="cursor: pointer;" src="/KOMORIUTA/Mypage/image/definite.png" width="60" height="30" onclick="definite('<%=Mem_Nick%>','<%=you[i]%>');"/>
 					</p>
 					<%}
 				}%>
 				<% if(division.equals("error")){ %>
 			<P>
 				<img style="cursor: pointer;" src="/KOMORIUTA/Mypage/image/Mybold_Ok.png" onclick="back();"/>
 			</P>
 				<% }else if(division.equals("no")){ %>
 			<P>
 				<img style="cursor: pointer;" src="/KOMORIUTA/Mypage/image/Mybold_Ok.png" onclick="backyoung();"/>
 			</P>
 				<%} %>
 	</fieldset>
 </div> 
</form>
</body>
</html>